package com.dc.project.workflow.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dc.project.workflow.entity.WfCategory;
import com.dc.project.workflow.entity.WfModelCategory;

import java.util.List;

/**
 * 流程模型分类关联表(WfModelCategory)表数据库访问层
 *
 * @author zhuangcy
 * @since 2021-06-30 14:16:26
 */
public interface WfModelCategoryDao extends BaseMapper<WfModelCategory> {

    /**
     * 查询所有数据
     *
     * @param wfModelCategory
     * @return
     */
    List<WfModelCategory> queryAll(WfModelCategory wfModelCategory);

    /**
     * 根据类别查询流程模型id
     *
     * @param docType
     * @return
     */
    String getCategoryModelIdByType(String docType);

    /**
     * 根据类别查询流程对应接口名
     *
     * @param category
     * @return
     */
    WfCategory getClassNameByCategory(String category);
}